package com.lsc;


import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

//@ComponentScan  扫描Mapper下的所有接口
@ComponentScan(basePackages = "com.lsc.blog")
@ComponentScan()
@SpringBootApplication
public class MybatisPlusApplication {

    public static void main(String[] args) {

        SpringApplication.run(MybatisPlusApplication.class, args);
    }

    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
    //逻辑删除  版本3.x以上就不用管注册这个bean了
  /*  @Bean
    public ISqlInjector sqlInjector(){
        return new LogicSqlInjector();
    }*/

}
